#ifndef PRODUCTTYPEEDITOR_H
#define PRODUCTTYPEEDITOR_H

#include <QDialog>
#include <QtSql>

#include "publicswidget.h"

namespace Ui {
    class ProductTypeEditor;
}

class ProductTypeEditor : public QDialog
{
    Q_OBJECT

public:
    explicit ProductTypeEditor(QWidget *parent = 0);
    ~ProductTypeEditor();
    QString theMode;
    QString theID;
    void setMode();
    QSqlDatabase db;
    PublicsWidget *pubs;
protected:
    void changeEvent(QEvent *e);

private:
    Ui::ProductTypeEditor *ui;
    void LoadProductCategoryDetails();
private slots:
    void on_buttonBox_accepted();
};

#endif // PRODUCTTYPEEDITOR_H
